import { createSSRApp } from "vue";
import { createPinia } from 'pinia';
import App from "./App.vue";

// #ifdef WEB
import jssdk from 'weixin-js-sdk'
// #endif

export function createApp() {

  const pinia = createPinia();
  const app = createSSRApp(App);

  // #ifdef WEB
  app.config.globalProperties.$wx = jssdk
  // #endif

  app.use(pinia);
  return {
    app,
  };
}
